<?php
namespace app\user\model;

use think\Model;

class Userdata extends Model {
	public function car() {
		return $this->hasManyThrough('Car', 'Order', 'user_id', 'id', 'id');
	}

	public function order() {
		return $this->hasMany('Order', 'user_id');
	}
	public function uoc() {
		return $this->hasMany('Uoc', 'id');
	}

}